/*
 * correctorTest2.c
 *
 *  Created on: May 1, 2013
 *      Author: koldar
 */

#include "graph.h"
#include "limits.h"
#include <stdlib.h>
#include <stdio.h>
#include "parser.h"

int main(int argn,const char** args){
	FILE* f;
	Pgraph pgraph;
	int N;
	int i=0;
	if (argn==2){
		f=fopen(args[1],"r");
	}else{
		printf("numero di parametri passati errati.\n");
		return EXIT_FAILURE;
	}
	pgraph=parseGraph(f,&N);
	printf("controllo le disugaglianze triangolari...\n");
	graphCorrector(pgraph);
	printAdjMatrix(stdout,pgraph,'t');
	printf("verifico che non ci siano altre disugualiganze triangolar...\n");
	graphCorrector(pgraph);
	printAdjMatrix(stdout,pgraph,'t');
	printf("FINE.\n");
}
